﻿
@{
    ViewBag.Title = "loginView";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>后台登录</title>
    <meta name="author" content="DeathGhost" />
    <link rel="stylesheet" type="text/css" href="~/Content/login.css" tppabs="css/style.css" />
    <style>
        body {
            height: 100%;
            background: #16a085;
            overflow: hidden;
        }

        canvas {
            z-index: -1;
            position: absolute;
        }
    </style>
    <script src="~/Scripts/jquery-3.3.1.js"></script>
    <script src="~/Scripts/verificationNumbers.js" tppabs="/Scripts/verificationNumbers.js"></script>
    <script src="~/Scripts/Particleground.js" tppabs="/Scripts/Particleground.js"></script>
    <script>
        $(document).ready(function () {
            //粒子背景特效
            $('body').particleground({
                dotColor: '#5cbdaa',
                lineColor: '#5cbdaa'
            });
            //验证码
            createCode();
            //测试提交，对接程序删除即可
            $(".submit_btn").click(function () {

                if (validate() == true) {
                    $("#mayform").submit();
                }
                
                //location.href = "javascrpt:;"/*tpa=http://***index.html*/;
            });
        });
    </script>
</head>
<body>
    <form id="mayform" action="/User/loginCheck" method="post">
        <dl class="admin_login">
            <dt>
                <strong>远扬工程管理系统登录</strong>
                <em>Management System</em>
            </dt>

            <dd class="user_icon">
                <input type="text" name="UserName" placeholder="账号" class="login_txtbx" />
            </dd>
            <dd class="pwd_icon">
                <input type="password" name="UserPassWord" placeholder="密码" class="login_txtbx" />
            </dd>

            <dd class="val_icon">
                <div class="checkcode">
                    <input type="text" id="J_codetext" placeholder="验证码" maxlength="4" class="login_txtbx">
                    <canvas class="J_codeimg" id="myCanvas" onclick="createCode()">对不起，您的浏览器不支持canvas，请下载最新版浏览器!</canvas>
                </div>
                <input type="button" value="验证码核验" class="ver_btn" onClick="validate();">
            </dd>
            <dd>
                <input type="button" value="立即登陆" class="submit_btn" />
            </dd>
            <dd>
                <p>© 2019-2020 重庆远扬能源股份有限公司 版权所有</p>
                <p>ICP备案号</p>
            </dd>

        </dl>
        <input type="submit" value="Submit" style="display:none">
    </form>
</body>
</html>

